<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:pe="http://primefaces.org/ui/extensions"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:fn="http://java.sun.com/jsp/jstl/functions">
    <ui:composition template="/layout/masterPageNotHeaderSearch.xhtml">
        <ui:define name="ui-header">
            <title>#{utilsController.getLanguages("ChoVayTuDong")}</title>
        </ui:define>
        <ui:define name="ui-content">
            <div class="container content">
                <div class="row">
                    <div class="heading heading-v1 margin-bottom-50">
                            <h2 class="headerColor" style="font-size: 35px;">#{utilsController.getLanguages("ChoVayTuDong").toUpperCase()}</h2>
                        </div>
                    <div class="col-md-2"/>
                    <div class="col-md-8">
                        <h:form class="sky-form rounded-2x" id="frmtuvanchovay">
                            <p:growl id="growl" showDetail="true" sticky="true" escape="false"  />  
                            <fieldset class="rounded-2x" style="padding: 25px 30px 20px">
                                <section>
                                    <div class="col-md-6">
                                        <c:set value="#{sI_NganHangController.findAllNganHang()}" var="vNganHang" scope="session"></c:set>
                                        <label class="input">
                                            <i class="icon-append fa fa-lock"></i>
                                            <label class="select">
                                                <select  id="cboNganHang"  onchange="cboTaiChinh_ChoVay_Change();">
                                                    <option value="0">#{utilsController.getLanguages("ChonNganHang")}</option>
                                                    <c:forEach items="#{vNganHang}" var="item">
                                                        <option value="#{item.getID()}" selected="#{c_TuVanChoVayController.item.nganHangID==item.getID()?'selected':''}">#{item.getTenNH()}</option>
                                                    </c:forEach>
                                                </select>
                                                <i></i>
                                            </label>

                                            <b class="tooltip tooltip-bottom-right">#{utilsController.getLanguages("rs_ChonNganHang")}</b>
                                        </label>

                                    </div>
                                    <div class="col-md-3">
                                        <label class="input">
                                            <i class="icon-append fa fa-lock"></i>
                                            <label class="select">
                                                <select  id="cboLoai" onchange="cboTaiChinh_ChoVay_Change();">
                                                    <option value="Y" selected="#{c_TuVanChoVayController.item.loai=='Y'?'selected':''}">#{utilsController.getLanguages("Year")}</option>
                                                    <option value="M" selected="#{c_TuVanChoVayController.item.loai=='M'?'selected':''}">#{utilsController.getLanguages("Month")}</option>
                                                </select>
                                                <i></i>
                                            </label>

                                            <b class="tooltip tooltip-bottom-right">#{utilsController.getLanguages("rs_ChonNganHang")}</b>
                                        </label>
                                    </div>
                                    <div class="col-md-3">
                                        <label class="input">
                                            <i class="icon-append fa fa-lock"></i>
                                            <label class="input">
                                                <p:inputText  readonly="true" placeholder="#{utilsController.getLanguages('LaiSuat')}" value="#{c_TuVanChoVayController.item.laiXuat}" ></p:inputText>

                                                <b class="tooltip tooltip-bottom-right">#{utilsController.getLanguages("rs_msg_LaiSuat")}</b>
                                            </label>
                                        </label>
                                    </div>
                                </section>


                            </fieldset>

                            <p:remoteCommand name="TaiChinh_ChoVay_Change" actionListener="#{c_TuVanChoVayController.btnTaiChinh_ChoVay_Change}" update=":frmtuvanchovay" oncomplete="updateSelectboxValue_ChoVay()"></p:remoteCommand>
                        </h:form>
                        <!-- End Reg-Form -->
                    </div>
                </div>
            </div>
        </ui:define>
    </ui:composition> 
</html>